package com.xbongbong.admin.model.impl;

import com.xbongbong.admin.domain.dao.WorkOrderStageRetainDao;
import com.xbongbong.admin.domain.entity.WorkOrderStageRetainEntity;
import com.xbongbong.admin.model.WorkOrderStageRetainModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title: 工单流程备份
 * @date 2020/3/1914:34
 */
@Service("workOrderStageRetainModel")
public class WorkOrderStageRetainModelImpl implements WorkOrderStageRetainModel {
    @Resource
    private WorkOrderStageRetainDao workOrderStageRetainDao;

    @Override
    public List<WorkOrderStageRetainEntity> findEntitys(Map<String, Object> param) {
        return workOrderStageRetainDao.findEntitys(param);
    }

    @Override
    public Integer deleteBatchByTemplateId(List<Long> list, String corpid) {
        return workOrderStageRetainDao.deleteBatchByTemplate(list,corpid);
    }

    @Override
    public Integer insertBatch(List<WorkOrderStageRetainEntity> workOrderStageRetainEntities) {
        return workOrderStageRetainDao.insertBatch(workOrderStageRetainEntities);
    }

    @Override
    public Integer deleteByAppId(Long appId, String corpid) {
        return workOrderStageRetainDao.deleteByAppId(appId,corpid);
    }
}
